#ifndef SERVER_SPIFFS_H
#define SERVER_SPIFFS_H

#include <string.h>
#include <sys/unistd.h>
#include <sys/stat.h>
#include "esp_err.h"
#include "esp_log.h"
#include "esp_spiffs.h"

esp_err_t read_spiffs_file(const char* path, char **buffer, size_t *file_len);
esp_err_t write_spiffs_file(const char* path, const char *content);
esp_err_t spiffs_deinit(char *partition_label);
esp_err_t spiffs_init(char *partition_label, char *mount_point, size_t max_files);
void esp_spiffs_module(void);

#endif